package com.wpc.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.wpc.service.WxkeyService;

/**
 * 处理用户请求
 * @author panguixiang
 *
 */
@Controller
@RequestMapping(value="/flushkey")
public class FlushApiController {

	@Autowired
	private WxkeyService wxkeyService;
	
	@ResponseBody
	@RequestMapping(value="/key",method=RequestMethod.GET)
	public Map<String,Object> docj(
			@RequestParam("sign") String sign,@RequestParam("uid") Integer uid
			, @RequestParam("biz") String biz) {
		Map<String,Object> map=new HashMap<String,Object>();
		return wxkeyService.getWxKey(map, uid, sign, biz);
	}
}
